From a9523055bade7e7bf551daedbf8df2701baf77ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Fri, 29 May 2026 17:30:32 +0200 Subject: [PATCH] padOsd: Fix menu animations Like outlined in the previous commit, `true` is interpreted as `PopupAnimation.SLIDE`, while we want the full animation with both slide and fade here. Part-of: --- js/ui/padOsd.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js index 713aab349..04a160cb3 100644 --- a/js/ui/padOsd.js +++ b/js/ui/padOsd.js @@ -12,6 +12,7 @@ import St from 'gi://St'; import * as Signals from '../misc/signals.js'; import * as Main from './main.js'; +import {PopupAnimation} from './boxpointer.js'; import * as PopupMenu from './popupMenu.js'; import * as Layout from './layout.js'; @@ -49,11 +50,11 @@ const PadChooser = GObject.registerClass({ vfunc_clicked() { if (this.get_checked()) { if (this._padChooserMenu != null) - this._padChooserMenu.open(true); + this._padChooserMenu.open(PopupAnimation.FULL); else this.set_checked(false); } else { - this._padChooserMenu.close(true); + this._padChooserMenu.close(PopupAnimation.FULL); } } @@ -181,7 +182,7 @@ const ActionComboBox = GObject.registerClass({ } popup() { - this._editMenu.open(true); + this._editMenu.open(PopupAnimation.FULL); } popdown() { -- 2.39.5